<script setup>
import { 
	onLoad,
	onShareAppMessage,
	onShareTimeline,
} from "@dcloudio/uni-app"
import { ref } from 'vue'
import { shareAppMessageConfig, shareTimelineConfig } from '@/utils/share';

const link = ref('')
 
onLoad((e) => {
    link.value = decodeURIComponent(e.link)
})
onShareAppMessage(() => {
	return shareAppMessageConfig();
})

onShareTimeline(() => {
	return shareTimelineConfig();
})
</script>

<template>
  <web-view :src="link"></web-view>
</template>

<style lang="scss" scoped></style>